package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

//订单表
@TableName(value = "orders")
public class Orders {
    @TableId(value = "orderId")
    private String orderId;//编号

    private Integer userId;//用户id

    private String orderName;//订单名称

    private Date orderBegin;//订单开启时间

    private Date orderEnd;//订单结束时间

    private Integer orderStatus;//当前状态 0：已付款  1：未付款

    private double orderMoney;//交易金额

    private String orderunique;//流水号

    private String orderRemark;//备注

    private Integer exit1;//备用字段1

    private String exit2;//备用字段2


    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", orderName='" + orderName + '\'' +
                ", orderBegin=" + orderBegin +
                ", orderEnd=" + orderEnd +
                ", orderStatus=" + orderStatus +
                ", orderMoney=" + orderMoney +
                ", orderunique='" + orderunique + '\'' +
                ", orderRemark='" + orderRemark + '\'' +
                ", exit1=" + exit1 +
                ", exit2='" + exit2 + '\'' +
                '}';
    }

    public Orders() {
        super();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public Date getOrderBegin() {
        return orderBegin;
    }

    public void setOrderBegin(Date orderBegin) {
        this.orderBegin = orderBegin;
    }

    public Date getOrderEnd() {
        return orderEnd;
    }

    public void setOrderEnd(Date orderEnd) {
        this.orderEnd = orderEnd;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getOrderunique() {
        return orderunique;
    }

    public void setOrderunique(String orderunique) {
        this.orderunique = orderunique;
    }

    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    public Integer getExit1() {
        return exit1;
    }

    public void setExit1(Integer exit1) {
        this.exit1 = exit1;
    }

    public String getExit2() {
        return exit2;
    }

    public void setExit2(String exit2) {
        this.exit2 = exit2;
    }

    public Orders(String orderId, Integer userId, String orderName, Date orderBegin, Date orderEnd, Integer orderStatus, double orderMoney, String orderunique, String orderRemark, Integer exit1, String exit2) {
        this.orderId = orderId;
        this.userId = userId;
        this.orderName = orderName;
        this.orderBegin = orderBegin;
        this.orderEnd = orderEnd;
        this.orderStatus = orderStatus;
        this.orderMoney = orderMoney;
        this.orderunique = orderunique;
        this.orderRemark = orderRemark;
        this.exit1 = exit1;
        this.exit2 = exit2;
    }
}
